コード例 #1
0
 private bool IsSpecificTriggerAvailable(StatusEffectController sec)
 {
     if (_inUseTriggers.Contains(sec) || _hasBeenUsedTriggers.Contains(sec))
     {
         return(false);
     }
     return(true);
 }
コード例 #2
0
 /// <summary>
 /// Initialize method setting HP, AI, adding skills and other component
 /// </summary>
 public virtual void Awake()
 {
     body = GetComponent<Rigidbody2D>();
     body.freezeRotation = true;
     groundCheck = transform.Find("groundCheck");
     statusController = new StatusEffectController(this);
 }