void Start () 
	{
		// Initialize variables
		player = GameObject.Find ("Player");
		ragdoll = player.GetComponent<RobotRagdoll>();
		deathPS = GameObject.Find ("DeathPS");
	}
    private void Start()
    {
        // Get the transform of the main camera to allow for camera-relative controls
        if (Camera.main != null)
        {
            cam = Camera.main.transform;
        }
        else
        {
            Debug.LogWarning(
                "Warning: no main camera found. Third person character needs a Camera tagged \"MainCamera\", for camera-relative controls.");
        }

        // Initialize variables
        character = GetComponent<RobotCharacter>();
		ragdoll = GetComponent<RobotRagdoll>();
		particle = GetComponent<RobotParticleManager>();
		energy = GetComponent<RobotEnergy>();
		isoCam = Camera.main.GetComponent<IsometricCamera>();
		GM = GameObject.Find("GameManager").GetComponent<GameManager>();
		gui = GameObject.Find ("GUI").GetComponentInChildren<GUIManager>();
		entity = GetComponentInChildren<EntityRig>();
		crouch = false;
		guard = false;
		leftTriggerReleased = true;
		rightTriggerReleased = true;
		energy.StartEnergyDrain();
    }
Ejemplo n.º 3
0
    void Start()
    {
        cg = gameEnding.GetComponent <CanvasGroup>();

        text = gameEnding.GetComponentInChildren <Text>();

        m_Ragdoll = character.robot.GetComponent <RobotRagdoll>();
    }
Ejemplo n.º 4
0
    void Start()
    {
        m_Animator = GetComponent <Animator>();

        m_Rigidbody = GetComponent <Rigidbody>();

        m_Ragdoll = GetComponent <RobotRagdoll>();
    }
    private void Start()
    {
        // Get the transform of the main camera to allow for camera-relative controls
        if (Camera.main != null)
        {
            cam = Camera.main.transform;
        }
        else
        {
            Debug.LogWarning(
                "Warning: no main camera found. Third person character needs a Camera tagged \"MainCamera\", for camera-relative controls.");
        }

        // Initialize variables
        character = GetComponent<RobotCharacter>();
		ragdoll = GetComponent<RobotRagdoll>();
		isoCam = Camera.main.GetComponent<IsometricCamera>();
		crouch = false;
		guard = false;
		leftTriggerReleased = true;
		rightTriggerReleased = true;
    }