protected override void Awake() { base.Awake(); _image = GetComponent <Image>(); _startColor = _image.color; CurrentState = CurrentStateEnum.BuildFarm; }
public void ChangeValues(CurrentStateEnum currentStateEnum, FieldTypeEnum fieldTypeEnum) { CurrentState = currentStateEnum; FieldType = fieldTypeEnum; }
public void ResetSate() { CurrentState = CurrentStateEnum.Empty; FieldType = FieldTypeEnum.Nothing; }
public void ChangeValues(NodeState nodeState) { CurrentState = nodeState.CurrentState; FieldType = nodeState.FieldType; }