Recent content by SkyWalker

  1. S

    How to differ a variable is set in the inspector or not?

    public class CastSkill:Action { public int magicId; public override void OnStart() { if(magicId ==0)//If magicId is set in the inspector, Then it should not be changed. magicId = SkillManager.Instance.CurrentSkillID;//Otherwise it should be changed by...
  2. S

    The static code analyzer reports some errors

    https://github.com/Tencent/TscanCode We use TscanCode to make our project robust. If there are errors, we have to fix them. For example: BehaviorSource.cs line="76" msg="comparing [mTaskData] to null at line 73 implies that [mTaskData] might be null.Dereferencing null pointer [mTaskData]"...
  3. S

    Enum value does not show correctly

    No. Right now it's 00000011(WorldLvPurse,MOFADUN). It is truncated on the right Perhaps it does not support [Flags] in the inspector?
  4. S

    Enum value does not show correctly

    Sorry. I add the image again. Please have a look.
  5. S

    Enum value does not show correctly

    It shows nothing in Inspector. It is truncated on the right. I can't debug well. Could you make it overflow so I can see all the enum? [Flags] public enum Buffstate2:long { WorldLvPurse= (1L << 1), MOFADUN = (1L <<2), }
Top