コード例 #1
0
ファイル: fire.cs プロジェクト: squidinkettle/Dragons-Rage
    // Start is called before the first frame update
    void Start()
    {
        buildingList = FindObjectOfType <ManageHouses>();
        player       = FindObjectOfType <Player>();

        fireLvl   = player.fireLvl;
        fireRange = 30 * ((fireLvl * 0.33f) + 1);
        range     = fireRange;

        float fireWait = 5f;

        StartCoroutine(FireSpread(fireWait));
    }
コード例 #2
0
ファイル: House.cs プロジェクト: squidinkettle/Dragons-Rage
    // Start is called before the first frame update
    void Start()
    {
        renderer    = GetComponent <Renderer>();
        player      = GameObject.FindWithTag("Player");
        audioSource = GetComponent <AudioSource>();
        SetupBuildings();
        float waitTime = 3f;

        StartCoroutine(houseLoop(waitTime));

        manageBuildings = FindObjectOfType <ManageHouses>();

        //StartCoroutine(SetDefaultTransparency(waitTransparency));
    }