public override void InitializeAgent() { var areaBox = area.GetComponent <BoxCollider>(); areaBounds = areaBox.bounds; Destroy(areaBox); my_rayPerCone = GetComponent <RayPerception3DCone>(); deformMesh = fallObjct.GetComponentInChildren <DeformMesh>(); fallObjectRb = fallObjct.GetComponent <Rigidbody>(); fallObjectInitPos = fallObjct.transform.position; spheres = new List <GameObject>(); agentInitQua = transform.rotation; Monitor.SetActive(true); chairAcademy = FindObjectOfType <ChairAcademy>(); }
void Awake() { script = GetComponent <DeformMesh>(); animator = GetComponent <Animator>(); }
private void Awake() { script = GetComponent <DeformMesh>(); }