void Start() { mAvatarPickup = GetComponent <AvatarPickup>(); mAvatar = GetComponent <Avatar>(); avatarCollider = transform.Find("GraphicsMain").collider; }
// Use this for initialization void Start() { mSpawnManager = GameObject.Find("AvatarSpawnManager").GetComponent <SpawnPointManager>(); mAvatarManager = GameObject.Find("ServerObject").GetComponent <AvatarManager>(); mAvatarGraphicsMain = transform.Find("GraphicsMain"); mAvatarGraphicsOverlay = transform.Find("GraphicsOverlay"); mAvatarPickup = GetComponent <AvatarPickup>(); mGraphicsOriginalScale = mAvatarGraphicsMain.localScale; StartCoroutine("Respawn", true); DontDestroyOnLoad(gameObject); }
// Use this for initialization void Start() { mSpawnManager = GameObject.Find("AvatarSpawnManager").GetComponent<SpawnPointManager>(); mAvatarManager = GameObject.Find("ServerObject").GetComponent<AvatarManager>(); mAvatarGraphicsMain = transform.Find("GraphicsMain"); mAvatarGraphicsOverlay = transform.Find("GraphicsOverlay"); mAvatarPickup = GetComponent<AvatarPickup>(); mGraphicsOriginalScale = mAvatarGraphicsMain.localScale; StartCoroutine("Respawn", true); DontDestroyOnLoad(gameObject); }
void Start() { mAvatarPickup = GetComponent<AvatarPickup>(); mAvatar = GetComponent<Avatar>(); }
void Start() { mAvatarPickup = GetComponent<AvatarPickup>(); mAvatar = GetComponent<Avatar>(); avatarCollider = transform.Find("GraphicsMain").collider; }