// Use this for initialization private void Start() { _leftPropellerController = LeftEngine.GetComponent <PropellerController>(); _rightPropellerController = RightEngine.GetComponent <PropellerController>(); _healthBar = Popo.transform.FindChild("nohealth"); _emptyHealthBar = Popo.transform.FindChild("fullhealth"); _gameData = GameObject.Find("GameDataContainer").GetComponent <GameData>(); _sail.Play(); }
private void Awake() { _rigidbody2D = GetComponent <Rigidbody2D>(); _leftParticle = LeftEngine.GetComponent <EllipsoidParticleEmitter>(); _rightParticle = RightEngine.GetComponent <EllipsoidParticleEmitter>(); }