示例#1
0
 /// <summary>
 /// On awake we initialize our masks
 /// </summary>
 protected virtual void Awake()
 {
     Mask1.gameObject.SetActive(true);
     Mask2.gameObject.SetActive(false);
     _currentMask = Mask1;
     _dormantMask = Mask2;
 }
示例#2
0
 /// <summary>
 /// Sets new values for current and dormant masks
 /// </summary>
 protected virtual void SwitchCurrentMask()
 {
     _currentMask = (_currentMask == Mask1) ? Mask2 : Mask1;
     _dormantMask = (_currentMask == Mask1) ? Mask2 : Mask1;
 }