示例#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");
 }
示例#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();
    }
示例#3
0
 // Use this for initialization
 void Start()
 {
     score       = GameObject.Find("Scoremaneger").GetComponent <Score>();
     humanLaught = this.GetComponent <HumanLaught>();
 }