void SetComponents() { agent = this.gameObject.GetComponent <NavMeshAgent>(); rigid = this.gameObject.GetComponent <Rigidbody>(); state_com = GetComponent <HumanStateComponent>(); humanLaught = GetComponent <HumanLaught>(); PLAYER = GameObject.FindGameObjectWithTag("Player"); }
void Start() { PLAYER_OBJ = GameObject.FindGameObjectWithTag("Player"); humanLaught = gameObject.transform.parent.gameObject.transform.parent.gameObject.transform.parent.gameObject.GetComponent <HumanLaught>(); Live2D.init(); load(); }
// Use this for initialization void Start() { score = GameObject.Find("Scoremaneger").GetComponent <Score>(); humanLaught = this.GetComponent <HumanLaught>(); }