Exemple #1
0
        public static void MovingAnimation(Chart chart, DataPoint dataPoint, float startPositionX, float startPositionY, double startTime, double duration, bool isOneByOne, bool isRepeated, double repeatDelay)
        {
            MovingAnimation legendAnimation = new MovingAnimation();

            legendAnimation.AnimatedElements.Add(dataPoint);

            if (startPositionX != -1)
            {
                legendAnimation.StartPositionX = startPositionX;
            }

            if (startPositionY != -1)
            {
                legendAnimation.StartPositionY = startPositionY;
            }

            legendAnimation.StartTime = startTime;
            legendAnimation.Duration  = duration;
            legendAnimation.Repeat    = isRepeated;

            if (repeatDelay != -1)
            {
                legendAnimation.RepeatDelay = repeatDelay;
            }

            legendAnimation.OneByOne = isOneByOne;
            chart.CustomAnimation.Add(legendAnimation);
        }
Exemple #2
0
    // 初期化メソッド
    public void SetUp()
    {
        _Move = GetComponent <MovingAnimation>();
        _Move.SetUp();

        _Actor   = GetComponent <Actor>();
        _Element = eMapElement.PLAYER;
        _Actor.SetUp(_Element);

        _GameManager   = GameObject.Find("GameManager").GetComponent <GameManager>();
        _StairsManager = GameObject.Find("StairsManager").GetComponent <StairsManager>();
        _MapManager    = GameObject.Find("MapManager").GetComponent <MapManager>();
    }
Exemple #3
0
    public void SetUp()
    {
        _Move = GetComponent <MovingAnimation>();
        if (_Move != null)
        {
            _Move.SetUp();
        }

        _Actor = GetComponent <Actor>();
        if (_Actor != null)
        {
            _Element = eMapElement.ENEMY;
            _Actor.SetUp(_Element);
        }

        _GameManager = GameObject.Find("GameManager").GetComponent <GameManager>();
    }