コード例 #1
0
    protected override void SetupComponents()
    {
        base.SetupComponents();

        navAgent.obstacleAvoidanceType = ObstacleAvoidanceType.NoObstacleAvoidance;
        navAgent.avoidancePriority     = 50;
        rootMotion = gameObject.AddComponent <KRootMotionRM>();
        //AddLight();
    }
コード例 #2
0
    protected override void SetupComponents()
    {
        base.SetupComponents();

        navAgent.avoidancePriority = 40;
        navAgent.baseOffset        = 0f;
        rootMotion     = gameObject.AddComponent <KRootMotionRM>();
        townUnitHelper = gameObject.AddComponent <TownUnitMoveHelper>();
        AddLight();
    }
コード例 #3
0
ファイル: Pc.cs プロジェクト: yonghoKim365/myProject_2020_05
    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();
        }
    }
コード例 #4
0
ファイル: Npc.cs プロジェクト: yonghoKim365/myProject_2020_05
    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>();
    }