// 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; }
public void Open() { if (currentState == eWallState.Closed) { currentState = eWallState.Open; } deleteWall = true; }
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; }
public void StartEvent() { State = eWallState.GROW; }