protected override void SetupComponents() { base.SetupComponents(); navAgent.obstacleAvoidanceType = ObstacleAvoidanceType.NoObstacleAvoidance; navAgent.avoidancePriority = 50; rootMotion = gameObject.AddComponent <KRootMotionRM>(); //AddLight(); }
protected override void SetupComponents() { base.SetupComponents(); navAgent.avoidancePriority = 40; navAgent.baseOffset = 0f; rootMotion = gameObject.AddComponent <KRootMotionRM>(); townUnitHelper = gameObject.AddComponent <TownUnitMoveHelper>(); AddLight(); }
protected override void SetupComponents() { base.SetupComponents(); navAgent.avoidancePriority = 45; // RootMotion 추가 //if(G_GameInfo.GameMode != GAME_MODE.PVP) rootMotion = gameObject.AddComponent <KRootMotionRM>(); IsLeader = true; //< 라이트 추가 if (!syncData._isPartner) { AddLight(); } }
protected override void SetupComponents() { base.SetupComponents(); switch (UnitType) { case global::UnitType.Npc: case global::UnitType.Boss: { //몬스터도 안밀림 navAgent.avoidancePriority = 20; } break; } if (SceneManager.instance.IsRTNetwork) { navAgent.avoidancePriority = 50; } rootMotion = gameObject.AddComponent <KRootMotionRM>(); }