예제 #1
0
 void Start()
 {
     Tracker           = FindObjectOfType <ManagerTracker>();
     TheLineRenderer   = GetComponent <LineRenderer>();
     TheParticleSystem = GetComponent <ParticleSystem>();
     ThePlayerID       = transform.root.GetComponent <PlayerID>();
 }
예제 #2
0
 void Start()
 {
     Tracker         = FindObjectOfType <ManagerTracker>();
     ThePlayerID     = GetComponent <PlayerID>();
     TheUnitStats    = GetComponent <UnitStats>();
     TheNavMeshAgent = GetComponent <NavMeshAgent>();
 }
예제 #3
0
    void Start()
    {
        Tracker = FindObjectOfType <ManagerTracker>();

        TheText         = GetComponent <Text>();
        TheImage        = GetComponent <Image>();
        TheButton       = GetComponent <Button>();
        TheMeshRenderer = GetComponent <MeshRenderer>();
    }
예제 #4
0
 void Start()
 {
     Tracker         = FindObjectOfType <ManagerTracker>();
     TheText         = GetComponent <Text>();
     TheImage        = GetComponent <Image>();
     TheMeshRenderer = GetComponent <MeshRenderer>();
     TheStatBar      = GetComponent <StatBar>();
     if (TheText != null)
     {
         PreviousColor = TheText.color;
     }
 }
    void Awake()
    {
        Tracker = GameObject.FindGameObjectWithTag("ManagerTracker").GetComponent <ManagerTracker>();

        MeshRenderer theMeshRenderer = GetComponent <MeshRenderer>();

        if (theMeshRenderer != null)
        {
            Meshes.Add(theMeshRenderer);
        }
        UpdateColor(-1);
    }
예제 #6
0
    void Start()
    {
        DontDestroyOnLoad(transform.gameObject);
        Tracker = FindObjectOfType <ManagerTracker>();

        GetManagers();

        if (isServer)
        {
            ID = connectionToClient.connectionId;
        }
        if (!hasAuthority)
        {
            return;
        }

        Tracker.ThePlayerControlPanel = this;
    }
예제 #7
0
 void Start()
 {
     Tracker = FindObjectOfType <ManagerTracker>();
 }
 void Start()
 {
     Tracker           = GameObject.FindGameObjectWithTag("ManagerTracker").GetComponent <ManagerTracker>();
     TheNetworkManager = GameObject.FindGameObjectWithTag("NetworkManager").GetComponent <NetworkManager>();
 }
예제 #9
0
 void Start()
 {
     Tracker        = FindObjectOfType <ManagerTracker>();
     StartingScale  = transform.localScale;
     CurrentChanges = (float)Tracker.GetType().GetField(ValueNameCurrent).GetValue(Tracker);
 }
예제 #10
0
 void Start()
 {
     Tracker = FindObjectOfType <ManagerTracker>();
     DontDestroyOnLoad(transform.gameObject);
 }
예제 #11
0
 void Start()
 {
     Tracker         = GameObject.FindGameObjectWithTag("ManagerTracker").GetComponent <ManagerTracker>();
     TheMeshRenderer = GetComponent <MeshRenderer>();
     UpdateColor();
 }
예제 #12
0
 void Start()
 {
     Tracker             = GameObject.FindGameObjectWithTag("ManagerTracker").GetComponent <ManagerTracker>();
     TheSelectionManager = GetComponent <SelectionManager>();
 }
예제 #13
0
 void Start()
 {
     Tracker     = FindObjectOfType <ManagerTracker>();
     TheRenderer = GetComponent <Renderer>();
     TheGate     = GetComponent <Gate>();
 }
예제 #14
0
 void Start()
 {
     Tracker     = FindObjectOfType <ManagerTracker>();
     TheRenderer = GetComponent <Renderer>();
     ThePlayerID = GetComponent <PlayerID>();
 }