Пример #1
0
    // Use this for initialization
    void Start()
    {
        controller = GetComponent<CharacterController>();
        bullet = Resources.Load("PlayerBullet") as GameObject;
        playerParameter = GetComponent<PlayerParameter>();
        powerUpParameter = GetComponent<PowerUpParameter>();

        IsDead = false;
        isDash = false;
    }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     param = GameObject.FindWithTag("Player").GetComponent<PowerUpParameter>();
 }