Пример #1
0
    void Start()
    {
        mAvatarPickup = GetComponent <AvatarPickup>();
        mAvatar       = GetComponent <Avatar>();

        avatarCollider = transform.Find("GraphicsMain").collider;
    }
Пример #2
0
    // 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);
    }
Пример #3
0
    // 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);
    }
Пример #4
0
 void Start()
 {
     mAvatarPickup = GetComponent<AvatarPickup>();
     mAvatar = GetComponent<Avatar>();
 }
Пример #5
0
    void Start()
    {
        mAvatarPickup = GetComponent<AvatarPickup>();
        mAvatar = GetComponent<Avatar>();

        avatarCollider = transform.Find("GraphicsMain").collider;
    }