Ejemplo n.º 1
0
	private void OnTriggerEnter (Collider other){
			if (other.gameObject.tag == "Object"){
				targetObject = other.GetComponent<ObjectChat>();
				if(targetObject.actions.Length !=0){
					actions = targetObject.actions;
				}
				
			}
		}
Ejemplo n.º 2
0
        public static void ObjectChat(ObjectChat P)
        {
            /*string ObjectName = null;
             *
             * for (int I = 0; I < MapLayer.ObjectList.Count; I++)
             * {
             *  if (MapLayer.ObjectList[I] == null || MirMapControl.ObjectList[I].ObjectID != P.ObjectID) continue;
             *  ObjectName = MapLayer.ObjectList[I].Name;
             *  break;
             * }*/

            //Add Speach Bubble
            ChatPanel.RecieveChat(new ChatInfo {
                User = P.Name, Message = P.Message, Type = P.Type
            });
        }