Exemplo n.º 1
0
 void SetComponents()
 {
     agent       = this.gameObject.GetComponent <NavMeshAgent>();
     rigid       = this.gameObject.GetComponent <Rigidbody>();
     state_com   = GetComponent <HumanStateComponent>();
     humanLaught = GetComponent <HumanLaught>();
     PLAYER      = GameObject.FindGameObjectWithTag("Player");
 }
Exemplo n.º 2
0
    void Start()
    {
        PLAYER_OBJ  = GameObject.FindGameObjectWithTag("Player");
        humanLaught = gameObject.transform.parent.gameObject.transform.parent.gameObject.transform.parent.gameObject.GetComponent <HumanLaught>();

        Live2D.init();

        load();
    }
Exemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     score       = GameObject.Find("Scoremaneger").GetComponent <Score>();
     humanLaught = this.GetComponent <HumanLaught>();
 }