示例#1
0
    public void Setup(InstinctManager instinctManager)
    {
        this.instinctManager = instinctManager;
        timer.Setup(instinctManager);
        roundNumber.Setup(instinctManager);

        for (int i = 0; i < playerAmmoBars.Length; i++)
        {
            playerAmmoBars[i].Setup(instinctManager, i);
        }
        for (int i = 0; i < equipmentBars.Length; i++)
        {
            equipmentBars[i].Setup(instinctManager, i);
        }

        Canvas drawCanvas = gameObject.GetComponent <Canvas>();

        drawCanvas.worldCamera   = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <Camera>();
        drawCanvas.planeDistance = 1;

        ReloadAll();
    }
示例#2
0
 public StateInitializing(InstinctManager manager) : base(manager)
 {
 }
示例#3
0
 private protected InstinctGameState(InstinctManager manager) => (this.manager) = (manager);