コード例 #1
0
    // Use this for initialization
    void Awake()
    {
        render  = this.gameObject.GetComponent <Renderer>();
        collide = this.gameObject.GetComponent <CapsuleCollider>();

        citizens = GameObject.Find("CitizenManager").GetComponent <CitizenManager_Script>();
        dragging = false;

        forageGhost = GameObject.Find("Ghost").GetComponent <ForageGhostBehavior>();

        Deactivate();
        //discoveryTimer = 100;
        ChangeDestination();
    }
コード例 #2
0
    }                                         //how much money to go from 1 to 2



// Use this for initialization
    void Start()
    {
        plotManager     = GameObject.Find("PlotManager").GetComponent <PlotManager_Script>();
        citizenManager  = GameObject.Find("CitizenManager").GetComponent <CitizenManager_Script>();
        storageBehavior = GameObject.Find("Storage").GetComponent <StorageBehavior>();

        modeCounter  = 0;
        currentMoney = 0;
        level        = 1;

        //creates the list of crops for the game to draw from
        //wanted it out of the way because it's a lot of lines
        CropsAndBuffs.GenerateCropList();
        CropsAndBuffs.GenerateBuffList();


        baseLevelUp = 80;
    }
コード例 #3
0
    // Use this for initialization
    void Awake()
    {
        render = this.gameObject.GetComponent<Renderer>();
        collide = this.gameObject.GetComponent<CapsuleCollider>();

        citizens = GameObject.Find ("CitizenManager").GetComponent<CitizenManager_Script>();
        dragging = false;

        forageGhost = GameObject.Find ("Ghost").GetComponent<ForageGhostBehavior>();

        Deactivate();
        //discoveryTimer = 100;
        ChangeDestination();
    }