public static ControllerStatus ToControllerStatus(this StatusPower status) { ControllerStatus result; switch (status) { case StatusPower.Cooling1: case StatusPower.Cooling2: result = ControllerStatus.Cooling; break; case StatusPower.Standby: result = ControllerStatus.Standby; break; case StatusPower.PowerOn: result = ControllerStatus.On; break; case StatusPower.Startup: case StatusPower.StartupLamp: result = ControllerStatus.Startup; break; default: result = ControllerStatus.Ok; break; } return(result); }
void Awake() { statusPower = GameObject.Find("PowerValueText").GetComponent <StatusPower>(); statusDefence = GameObject.Find("DefenceValueText").GetComponent <StatusDefence>(); statusSpeed = GameObject.Find("SpeedValueText").GetComponent <StatusSpeed>(); statusHP = GameObject.Find("HPValueText").GetComponent <StatusHP>(); statusMP = GameObject.Find("MPValueText").GetComponent <StatusMP>(); statusLevel = GameObject.Find("LevelValueText").GetComponent <StatusLevel>(); statusPlayerName = GameObject.Find("PlayerNameText").GetComponent <StatusPlayerName>(); statusPlayerImage = GameObject.Find("PlayerImage").GetComponent <StatusPlayerImage>(); command04Display = GameObject.Find("BackGround04").GetComponent <Command04Display>(); }
void Awake() { statusPower = GameObject.Find("PowerValueText").GetComponent <StatusPower>(); }