Beispiel #1
0
 // Use this for initialization
 protected override void Start()
 {
     base.Start();
     tiledata = GetComponent <TileData>();
     Assert.IsNotNull(tiledata, "A LockedWall require a TileData component!");
     currentState = eWallState.Closed;
 }
Beispiel #2
0
    public void Open()
    {
        if (currentState == eWallState.Closed)
        {
            currentState = eWallState.Open;
        }

        deleteWall = true;
    }
Beispiel #3
0
    public void Init(float startHeight, float growTime)
    {
        StartHeight = -startHeight;
        EndHeight   = 0.0f;
        GrowTime    = startHeight / growTime;

        transform.position = new Vector3(transform.position.x, StartHeight, transform.position.z);

        State = 0;
    }
Beispiel #4
0
 public void StartEvent()
 {
     State = eWallState.GROW;
 }