Exemple #1
0
    void Awake()
    {
        walkAndJump = GetComponent <WalkAndJump>();
        org         = GetComponent <Organism>();
        //ctrl = GetComponent<CharacterController>();

        _tr     = gameObject.transform;
        habitat = transform.position;

        animator = GetComponent <Animator>();

        TargetUpdate();
    }
Exemple #2
0
    //public AudioClip runeGot;

    private void Awake()
    {
        inst        = this;
        organism    = GetComponent <Organism>();
        walkAndJump = GetComponent <WalkAndJump>();
        manager     = FindObjectOfType <GameStateManager>();

        cam = FindObjectOfType <Camera>();

        wand = transform.Find("wand").gameObject;

        aim   = GameObject.Find("Aim");
        X     = aim.transform.Find("X").gameObject;
        mouse = aim.transform.Find("mouse").gameObject;

        animator = transform.Find("witch").GetComponent <Animator>();
    }