Example #1
0
 void Awake()
 {
     player      = GetComponent <BasePlayer>();
     input       = serverinput.GetValue(player) as InputState;
     position    = transform.position;
     chuteskinID = 0;
     instance    = new Chute();
 }
Example #2
0
 void Awake()
 {
     _instance = new Chute();
     player    = GetComponentInParent <BasePlayer>() ?? null;
     if (player == null)
     {
         OnDestroy(); return;
     }
     usedchute       = false;
     dismountcounter = 0f;
     player.ClearEntityQueue();
 }