Пример #1
0
    protected override void Init()
    {
        int moveBlank = (ParamMax + 5 - Param.Agility) * 6;

        _onMove = new TickEvent(moveBlank);
        _onMove.AddListener(TimingMovement);
    }
    private void Awake()
    {
        if (_instance == null)
        {
            _instance = this;
            OnTick    = new TickEvent();

            //Set Player listeners
            OnTick.AddListener(P1.OnTick);
            OnTick.AddListener(P2.OnTick);
        }
        else
        {
            Destroy(this);
        }
    }