예제 #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;
 }
예제 #2
0
    public void Open()
    {
        if (currentState == eWallState.Closed)
        {
            currentState = eWallState.Open;
        }

        deleteWall = true;
    }
예제 #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;
    }
예제 #4
0
 public void StartEvent()
 {
     State = eWallState.GROW;
 }