//Initializes all required references to external scripts. public void Init(TankManager manager) { m_Manager = manager; m_TankDisplay = manager.display; m_StartingHealth = manager.playerTankType.hitPoints; m_Collider = m_TankDisplay.GetComponent <BoxCollider>(); }
//Accepts a TankManager reference to pull in all necessary data and references. public void Init(TankManager manager) { enabled = false; m_TankDisplay = manager.display; m_OriginalSpeed = manager.playerTankType.speed; m_OriginalTurnRate = manager.playerTankType.turnRate; SetDefaults(); }