예제 #1
0
    // Use this for initialization
    void Start()
    {
        machineController = GetComponent<MachineController> ();
        machineController.AddListener (this);

        Global.MachineActivationManager.AddMachineRandomActivator (this);
    }
예제 #2
0
    // Use this for initialization
    void Start()
    {
        machineController = GetComponent <MachineController> ();
        mapOverlay        = GameObject.Find("MapOverlay");

        machineController.AddListener(this);
    }
예제 #3
0
    // Use this for initialization
    void Start()
    {
        gameController    = GameObject.FindWithTag("GameController").GetComponent <GameController>();
        machineController = GetComponent <MachineController>();

        machineController.AddListener(this);
        isActive = false;
    }
예제 #4
0
    // Use this for initialization
    void Start()
    {
        gameController    = GameObject.FindWithTag("GameController").GetComponent <GameController> ();
        machineController = GetComponent <MachineController> ();
        mapOverlay        = GameObject.Find("MapOverlay");

        machineController.AddListener(this);

        isActive      = false;
        isInteracting = false;
    }