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