// Private Methods void Start() { trailEffectsManager = GetComponent <PlayerTrailEffectsManager>(); ui = GetComponent <PlayerUI>(); flickerer = GetComponent <PlayerDamageFlicker>(); flickerer.deathDuration = rainlessDamageTime; trailEffectsManager.StartCharging(); sphericalMovementVector = minGlideSpeed * sphericalMovementVector.normalized; // Automatically go into mobile input mode if touch is supported mobileInputMode = Input.touchSupported; }
// Use this for initialization void Start() { health = GetComponent <PlayerHealth>(); controller = GetComponent <PlayerMouseController>(); flickerer = GetComponent <PlayerDamageFlicker>(); }