コード例 #1
0
    public override void TakeAction(AgentHandler agentScript)
    {
        GameConstants.Instance.NumberOfMines++;

        GameObject mineToDeploy = PoolSystem.Instance.GetObjectFromPool(agentScript.MinePrefab, argActivateObject: true, argShouldExpandPool: true, argShouldCreateNonExistingPool: true);
        Mine       mineScript   = mineToDeploy.GetComponent <Mine>();

        mineScript.SpawnMine(agentScript.transform.position);

        agentScript.SetDeployMineTimer(0.0f);
    }