Ejemplo n.º 1
0
        private void Start()
        {
            console = GetComponentInParent <ConsoleLine>();
            console.AddOnSendCommand(Constantes.Command.Set, Do);

            cameraView = FindObjectOfType <InteractiveView>();
        }
Ejemplo n.º 2
0
 void Start()
 {
     console = GetComponentInParent <ConsoleLine>();
     console.AddOnSendCommand(Constantes.Command.Add, Do);
     console.AddOnWriteCommand(ShowVisual);
     console.AddOnActiveCommande(ShowVisual);
     DivideScreen();
 }
Ejemplo n.º 3
0
 private void Start()
 {
     console = FindObjectOfType <ConsoleLine>();
     console.AddOnSucessedCommand(OnSucced);
     console.AddOnFailedCommand(OnFailed);
     console.AddOnActiveCommande(ActiveText);
     console.AddOnWriteCommand(AutoCompletion);
     AutoCompletion(new string[] { });
     ActiveText(false);
 }
Ejemplo n.º 4
0
        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);
        }