Пример #1
0
    // 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;
    }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     health     = GetComponent <PlayerHealth>();
     controller = GetComponent <PlayerMouseController>();
     flickerer  = GetComponent <PlayerDamageFlicker>();
 }