void Start() { // INITIALIZING NETW STATESYNC COMPONENT netwStateSync = gameObject.GetComponent<NetworkStateSync>(); // VAMPIRE AND SLAYER BASE POSITIONS INITIALIZE VampireBasePos = GameObject.Find ("VampireBase").transform.position; SlayerBasePos = GameObject.Find ("SlayerBase").transform.position; // HUD INITIALIZATION HUD = gameObject.GetComponent<vp_SimpleHUD> (); }
void Start() { netwEvents = gameObject.GetComponent<NetworkEvents> (); netwStateSync = gameObject.GetComponent<NetworkStateSync> (); prevDamage = 0f; }