예제 #1
0
 public FloorDeployState()
 {
     NextState      = null;
     targetPosition = Vector3.zero;
     xOffset        = 0.5f;
     yOffset        = 1f;
 }
예제 #2
0
    private void CycleCurrentMinType()
    {
        var currentMinInt = (int)currentMinType;

        currentMinInt++;
        currentMinInt %= numTypes;
        currentMinType = (MinsType)currentMinInt;
        playerAppearance.ChangeMinAppearance(currentMinType);
        currentDeployState = currentDeployState.NextState;
    }
예제 #3
0
    private void InitializeDeployStates()
    {
        if (!deployStateInitialized)
        {
            blockDeployState      = new BlockDeployState();
            floorDeployState      = new FloorDeployState();
            burstDeployState      = new BurstDeployState();
            projectileDeployState = new ProjectileDeployState();

            blockDeployState.SetNextState(floorDeployState);
            floorDeployState.SetNextState(burstDeployState);
            burstDeployState.SetNextState(projectileDeployState);
            projectileDeployState.SetNextState(blockDeployState);

            currentDeployState = blockDeployState;

            deployStateInitialized = true;
        }
    }
예제 #4
0
 public void SetNextState(IDeployState next)
 {
     NextState = next;
 }
예제 #5
0
 public BurstDeployState()
 {
     NextState = null;
 }
예제 #6
0
 public ProjectileDeployState()
 {
     NextState   = null;
     deployRange = 5f;
 }
예제 #7
0
 public BlockDeployState()
 {
     NextState = null;
 }