示例#1
0
 private void Start()
 {
     inputManager        = GameManager.ActiveGameManager.InputManager;
     walkManager         = GetComponent <WalkManager>();
     dashManager         = GetComponent <DashManager>();
     dashManager.enabled = false;
     drawManager         = GetComponent <DrawManager>();
     powerManager        = GetComponent <PowerManager>();
     drawManager.enabled = false;
     mainCamera          = GameManager.ActiveGameManager.MainCamera;
     pathColLayerMask    = LayerMask.GetMask("DrawCollider");
     CURRENT_STATE       = PLAYER_STATE.WALK;
 }
示例#2
0
    private void Start()
    {
        rocketFire  = FindObjectsOfType <RocketFire>();
        spawnPoints = FindObjectsOfType <SpawnPoint>();

        networkManager = FindObjectOfType <NetworkManager>();

        if (isServer)
        {
            networkID = networkManager.numPlayers;
        }

        myOrigin    = transform.GetChild(1);
        mySphere    = transform.GetChild(0);
        ikMapper    = FindObjectOfType <IKMapperSetupLocal>();
        vrikmapper  = FindObjectOfType <VRIKMapper>();
        walkmanager = FindObjectOfType <WalkManager>();
    }