public void SetDroneOwner(DroneBase drone, OWNERS owner) { Color droneColor = Color.yellow; switch (owner) { case OWNERS.PLAYER: droneColor = Color.green; break; case OWNERS.RAIDER: droneColor = Color.red; break; case OWNERS.NEUTRAL: droneColor = Color.white; break; } foreach (Image image in images) { image.color = droneColor; } idText.color = droneColor; UserDrone uDrone = drone.GetComponent <UserDrone>(); if (uDrone != null) { idText.text = uDrone.GetStringIdentifier(); } }
internal void SetDrone(UserDrone drone) { this.drone = drone; droneID.text = drone.GetStringIdentifier(); //barWidth = 340; }
public void UpdateStaticText() { droneID.text = drone.GetStringIdentifier(); }