Ejemplo n.º 1
0
    public KeyCode hackKey;                                                     //Button to Hack an enemy

    void Start()
    {
        anim             = this.transform.parent.GetComponent <Animator> ();
        hacksprite       = GetComponentInChildren <SpriteRenderer> ();
        objectsInRange   = new ArrayList();
        HackCD           = 10;
        playerScript     = GetComponentInParent <Player2DController>();
        buttonController = playerScript.buttonController.GetComponent <SkillButtonHandler>();
    }
Ejemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     anim                = GetComponent <Animator>();
     player              = GameObject.FindGameObjectWithTag("Player");
     playerscript        = player.GetComponent <PlayerInfo>();
     playerControlScript = player.GetComponent <Player2DController>();
     buttonController    = playerControlScript.buttonController.GetComponent <SkillButtonHandler>();
     LevelColor          = GetComponent <Renderer>().material.color;
     AssignDelta();
 }