private void Start() { console = GetComponentInParent <ConsoleLine>(); console.AddOnSendCommand(Constantes.Command.Set, Do); cameraView = FindObjectOfType <InteractiveView>(); }
void Start() { console = GetComponentInParent <ConsoleLine>(); console.AddOnSendCommand(Constantes.Command.Add, Do); console.AddOnWriteCommand(ShowVisual); console.AddOnActiveCommande(ShowVisual); DivideScreen(); }
private void Start() { console = FindObjectOfType <ConsoleLine>(); console.AddOnSucessedCommand(OnSucced); console.AddOnFailedCommand(OnFailed); console.AddOnActiveCommande(ActiveText); console.AddOnWriteCommand(AutoCompletion); AutoCompletion(new string[] { }); ActiveText(false); }
public void Init(InteractiveBehaviour entity, IReadOnlyCollection <EntityVariable> variables, Transform target) { owner = entity; this.target = target; if (hideName) { if (timeToCrypt > 0.0f) { InvokeRepeating("CryptName", 0.0f, timeToCrypt); } else { objName.text = "<color=#ffffffff>" + owner.Name.Crypt() + "</color>"; } } else { objName.text = "<color=#ffffffff>" + owner.Name + "</color>"; } console = FindObjectOfType <ConsoleLine>(); dico = console.GetComponent <ConsoleDictionnary>(); // temporary fix to add objects without having a ref to the main camera if (mainCamera == null) { mainCamera = Camera.main; } console.AddOnWriteCommand(SetColor); console.AddOnActiveCommande(OnActiveConsole); InitTransform(); InitVariable(variables); }