private void OnTriggerEnter(Collider other) { if (_myState == DragonEState.FlyGlide) { if (other.tag == "Player") { _nomoreGliding = true; Debug.Log("f**k"); CPlayerPara otherPara = other.GetComponent <CPlayerPara>(); CCntl otherCntl = other.GetComponent <CCntl>(); otherPara.DamegedRegardDefence(_myBossPara._attackMax * 2); otherCntl.CCController("KnockBack", 30f); } } }
private void Start() { // Singleton 선언해놓은 클래스들 받는 변수 _playerUi = CUIManager.instance; gameEvent = CGameEvent.instance; _camera = CMouseFollower.instance; if (player != null) { _playerControl = player.GetComponent <CCntl>(); SetControlCharacter(player); previousPlayerPos = player.transform.position; StartCoroutine("MoveTracer"); } // Callback 전달 CWindowFacade.instance.SetControlLockCallback = SetControlLock; }