Beispiel #1
0
        private void DoActivateTargetIndicator(SplatManager splat)
        {
            var point = GetTargetIndicator(splat);

            point.RangeIndicator = DoGetRangeIndicator(splat);
            splat.RefreshIndicators();
            splat.SelectSpellIndicator(TargetName);
        }
Beispiel #2
0
    public override void onJoystickDown(Vector2 V, float R)
    {
        base.onJoystickDown(V, R);

        switch (model._config.skill_type)
        {
        case SkillType.点:
            splat_manager.SelectSpellIndicator("skill" + model._config.ID + "_indicator");
            splat_manager.CurrentSpellIndicator.transform.position = (Vector3)V * R + ActorController.Controller.transform.position;
            break;

        case SkillType.线:
            splat_manager.SelectSpellIndicator("skill" + model._config.ID + "_indicator");
            splat_manager.CurrentSpellIndicator.transform.rotation = Quaternion.FromToRotation(Vector2.up, V);
            break;

        case SkillType.点击:
            break;

        default:
            break;
        }
    }