コード例 #1
0
    public void Init()
    {
        this.gameObject.SetActive(true);
        base.Init();
        this.transform.localScale = new Vector3(1.5f, 1.5f, 1.5f);

        if (_arrowPool == null)
        {
            _arrowPool = GameObject.FindGameObjectWithTag("ObjectPool").GetComponent <Pool_Controller>();
        }

        SetCrossbow();

        StartCoroutine("FindPlayer");
    }
コード例 #2
0
    void Start()
    {
        this.gameObject.name = "[Manager]MainScene";

        _objPoolCtrl = objectPool.GetComponent <Pool_Controller>();

        MainSceneInit();

        _castlesCtrl = new List <Controller_Castle>();
        for (int i = 0; i < Castles.Length; ++i)
        {
            _castlesCtrl.Add(Castles[i].GetComponent <Controller_Castle>());
        }


        StartCoroutine("ResoponEnermy");
    }