예제 #1
0
 public void CleanUp()
 {
     if (!myIsActive)
     {
         return;
     }
     myIsActive = false;
     myImpactedMovement.AddToJumpHeight(-myJumpModifier);
 }
예제 #2
0
        // TODO: Probably needs a revisit when its time for online multiplayer.
        public IEnumerator ScheduleEffect(GameObject player)
        {
            myImpactedMovement = player.GetComponent <PlayerMovement>();
            if (myIsActive)
            {
                myImpactedMovement.AddToJumpHeight(myJumpModifier);
            }
            yield return(new WaitForSeconds(myActiveTime));

            CleanUp();
        }