コード例 #1
0
        public override async Task BuildAsync()
        {
            HitAction = await GetBehavior("hit_action");

            HitActionEnemy = await GetBehavior("hit_action_enemy");

            HitActionFaction = await GetBehavior("hit_action_faction");
        }
コード例 #2
0
        public override async Task BuildAsync()
        {
            Action = await GetBehavior("action");

            ActionFalse = await GetBehavior("action_false");

            ActionTrue = await GetBehavior("action_true");

            Imagination = await GetParameter <int>("imagination");

            IsEnemyFaction = (await GetParameter("isEnemyFaction"))?.Value > 0;
        }
コード例 #3
0
        public override async Task BuildAsync()
        {
            GroundBehavior = await GetBehavior("ground_action");

            JumpBehavior = await GetBehavior("jump_action");

            FallingBehavior = await GetBehavior("falling_action");

            DoubleJumpBehavior = await GetBehavior("double_jump_action");

            JetpackBehavior = await GetBehavior("ground_action");
        }
コード例 #4
0
ファイル: SwitchBehavior.cs プロジェクト: UchuServer/Uchu
        public override async Task BuildAsync()
        {
            Action = await GetBehavior("action");

            ActionFalse = await GetBehavior("action_false");

            ActionTrue = await GetBehavior("action_true");

            Imagination = await GetParameter <int>("imagination");

            IsEnemyFaction = (await GetParameter("isEnemyFaction"))?.Value > 0;
            TargetHasBuff  = (int?)(await GetParameter("target_has_buff"))?.Value;
        }
コード例 #5
0
        public override async Task BuildAsync()
        {
            Lot = await GetParameter <int>("LOT_ID");

            Distance = await GetParameter <float>("distance");

            ObjectRadius = await GetParameter <float>("objectRadius");

            Offset = new Vector3
            {
                X = await GetParameter <float>("offsetX"),
                Y = await GetParameter <float>("offsetY"),
                Z = await GetParameter <float>("offsetZ")
            };

            RepositionPlayer = await GetParameter <float>("repositionPlayer");

            SpawnFailAction = await GetBehavior("spawn_fail_action");
        }
コード例 #6
0
ファイル: TargetCasterBehavior.cs プロジェクト: kulaj/Uchu
 public override async Task BuildAsync()
 {
     Action = await GetBehavior("action");
 }
コード例 #7
0
ファイル: AirMovementBehavior.cs プロジェクト: kulaj/Uchu
 public override async Task BuildAsync()
 {
     GroundAction = await GetBehavior("ground_action");
 }