// Start is called before the first frame update void Start() { myControllerInputs = this.gameObject.GetComponent <controllerInputs>(); myAnimator = this.gameObject.GetComponent <Animator>(); effectAnimator = this.transform.GetChild(1).GetComponent <Animator>(); myAudioManager = this.gameObject.GetComponent <AudioManager>(); myAttackSystem = this.gameObject.GetComponent <attackSystem>(); }
void onLoad() { myControllerInputs = this.gameObject.GetComponent <controllerInputs>(); otherPlayer = FindObjectsOfType <playerMove>()[(this.gameObject.tag == "1" ? 1 : 2) - 1].gameObject.transform; }
void onLoad() { myControllerInputs = this.gameObject.GetComponent <controllerInputs>(); myTriggerColliderSystem = this.gameObject.transform.GetChild(0).GetComponent <triggerColliderSystem>(); }