void Awake() { LogIn(); shieldRechargeTimer = new Timer(); shield = GetComponentInChildren <BasicShield>(); rig = GetComponentInChildren <BasicRig>(); movement = GetComponent <TopDownPlayerMovement>(); //TO:DO Refactor ammo = 6; maxAmmo = 6; shotsOut = 0; // model = new PlayerModel(0, 100f, 100f, 2f, 10f, false, false, true); shield.SetModel(model); rig.SetModel(model); rig.SetId(id); }
void Awake () { _movement = GetComponent<TopDownPlayerMovement> (); }