Beispiel #1
0
    // Use this for initialization
    protected void Start()
    {
        // Caches the chest manager
        objectSwitch = GameObject.Find("Object Switch").GetComponent <GameObjectSwitch>();

        character = GameObject.Find("character");
    }
Beispiel #2
0
    // Use this for initialization
    void Start()
    {
        // Cache the animator
        animator = gameObject.GetComponent <Animator>();

        // Cache the game object switch
        _objectSwitch = GameObject.Find("Object Switch").GetComponent <GameObjectSwitch>();

        // Start by pushing
        currentState = States.Pushing;
    }