void Start() { _instance = this; em1 = player1.GetComponent <PlayerMove_Level2>(); em2 = player2.GetComponent <PlayerMove_Level2>(); pa1 = player1.GetComponent <PlayerAttack_Level2>(); pa2 = player2.GetComponent <PlayerAttack_Level2>(); InitSocket(); }
void Awake() { _instance = this; cam = Camera.main; attack = GetComponent <PlayerAttack_Level2>(); move = GetComponent <PlayerMove_Level2>(); audioSources = GetComponents <AudioSource>(); audioSource = audioSources[2]; damageReflectText.enabled = false; attackBuffText.enabled = false; overPoisonText.enabled = false; overAreaText.enabled = false; }