示例#1
0
 // Use this for initialization
 void Start()
 {
     guardian     = null;
     WithGuardian = false;
     screenPos    = Camera.main.WorldToScreenPoint(transform.position);
     screenPos.y  = Screen.height - screenPos.y;
     removeRect   = new Rect(screenPos.x - butRect.x / 1.75f, screenPos.y - butRect.y * 5.0f, butRect.x, butRect.y);
     editor       = GameObject.Find("GUILayout").transform.GetComponent <TeamLayout>();
     removeBut    = editor.RemoveBut;
 }
示例#2
0
 // Use this for initialization
 void Start()
 {
     guardian = null;
     WithGuardian = false;
     screenPos = Camera.main.WorldToScreenPoint(transform.position);
     screenPos.y = Screen.height - screenPos.y;
     removeRect = new Rect(screenPos.x-butRect.x/1.75f, screenPos.y-butRect.y*5.0f, butRect.x, butRect.y);
     editor = GameObject.Find("GUILayout").transform.GetComponent<TeamLayout>();
     removeBut = editor.RemoveBut;
 }