void Awake() { myAnimator = this.GetComponent <Animator> (); myAesthetic = this.GetComponent <ArtemAestheticController> (); pmc = transform.root.gameObject.GetComponent <PersonMovementController> (); pwc = transform.root.gameObject.GetComponent <PersonWeaponController> (); }
void Awake() { if (this.gameObject.tag == "Player") { playerClothes = this; } aac = this.GetComponentInChildren <ArtemAestheticController> (); clothesBeingWorn = new List <ClothingItem> (); }
// Use this for initialization void Start() { myAnimator = this.GetComponent <Animator> (); myAesthetic = this.GetComponent <ArtemAestheticController> (); pmc = transform.root.gameObject.GetComponent <PersonMovementController> (); pwc = transform.root.gameObject.GetComponent <PersonWeaponController> (); rightHand = myAesthetic.rHandObj; leftHand = myAesthetic.lHandObj; setMovingForward(); }
void OnTriggerExit2D(Collider2D other) { if (other.transform.root.tag == "NPC" || other.transform.root.tag == "Player") { if (other.transform.root.gameObject.GetComponentInChildren <PersonOnFireEffect> () == false) { ArtemAestheticController aac = other.transform.root.GetComponentInChildren <ArtemAestheticController> (); GameObject g = (GameObject)Instantiate(CommonObjectsStore.me.fireEffect, aac.torsoObj.transform); g.transform.localPosition = Vector3.zero; } } }