Пример #1
0
    public void SetObjectOnScene(ActionObject actionObject, bool isAction)
    {
        if (isAction)
        {
            actionObject.SetPosition(_anchor.GetPosition());
        }
        else
        {
            (actionObject as Spawn).LeaveThePoolAndRun(_anchor.GetPosition());
        }

        _anchor.SetChangeableObject(actionObject as IUpgradeable);
    }