private new void Start()
        {
            base.Start();

            actionParams = new ActionParams();
            actionParams.Put("speed", 30f);
        }
Пример #2
0
        public override void CollectableObjectEffect(Collider2D collision)
        {
            Debug.Log("Player " + worldIndex + " collected booster!");

            ActionParams actionParams = new ActionParams();

            actionParams.Put("amount", amount);

            m_Scene.GetEventManager().CallEvent(ApplicationConstants.EVENT_PLAYER_COLLECTED_BOOSTER, actionParams);
            //CommonRequests.RequestPowerUpActivation(PowerUpManager.PowerUpEffect.Magnet, worldIndex);
        }
Пример #3
0
        public override void CollectableObjectEffect(Collider2D collision)
        {
            if (m_Scene != null)
            {
                ActionParams actionParams = new ActionParams();
                actionParams.Put("amount", _value);



                m_Scene.GetEventManager().CallEvent(ApplicationConstants.EVENT_PLAYER_COLLECTED_DIAMOND, actionParams);

                //m_Scene.IncreaseCoinsByAmount(_value);
            }
            else
            {
                throw new Exception("Stav please fix me!");
            }
        }