Exemple #1
0
    private void OnTriggerStay(Collider other)
    {
        levelHandler.LevelFinished();

        FindObjectOfType <ScoreScreen>().SetAll();
        GameObject.Find("PlayerFPSController").SendMessage("Finish");

        charController = GetComponent <CharacterController>();
        PlayerFPSController.GetComponent <CharacterController>().enabled = false;

        stopShooting.GetComponent <Shooting>().enabled = false;

        StartCoroutine(WaitForSceneLoad());
    }
 override public void setTankMovement(Shooting tankShooting)
 {
     m_TankShooting = tankShooting;
     m_RigidBody    = m_TankShooting.GetComponent <Rigidbody> ();
     m_TankShooting.setCurrentLaunchForce(m_TankShooting.m_MinLaunchForce);
 }