Beispiel #1
0
    public void OnAttackClick(GameObject sender)
    {
        Debug.Log("attack clicked");

        GameObject gameObject = GameObject.Find("Skeleton");

        Animator anim = gameObject.GetComponent <Animator>();

        anim.SetTrigger("AttackTrigger");

        srv_comm.Attack();
    }