Exemple #1
0
 public void Init(PathSpeed _moveSpeed, bool _turnInstantly, bool _forceDirection, CharDirection _charDirection, CharacterAnimation2DShot _activeShot)
 {
     moveSpeed      = _moveSpeed;
     forceDirection = _forceDirection;
     charDirection  = _charDirection;
     turnInstantly  = _turnInstantly;
     activeShot     = _activeShot;
 }
Exemple #2
0
        public override void OnInspectorGUI()
        {
            CharacterAnimation2DShot _target = (CharacterAnimation2DShot)target;

            _target.ShowGUI();

            if (GUI.changed)
            {
                EditorUtility.SetDirty(_target);
            }
        }