Пример #1
0
    private void Start()
    {
        if (!loadStatus)
        {
            if (!map.deductEnergy(map.getCost(map.modTargetIndex, eventName), map.modTargetIndex))
            {
                map.modTargetIndex = -1;
                Destroy(this.gameObject);
            }

            targetName = target.name;

            target.data.modQueue.Add(eventName);

            map.modTargetIndex = -1;

            ModProbability();
        }
        this.gameObject.transform.position = new Vector3(target.center.x * WorldMap2D.mapWidth, target.center.y * WorldMap2D.mapHeight, 86);
    }