Пример #1
0
    // Use this for initialization
    void Start()
    {
        playerObject         = GameObject.Find("01_Player");
        playerControlData    = playerObject.GetComponent <PlayerAttributeControl>();
        playerKeyControlData = playerObject.GetComponent <PlayerKeyboardControl>();


        cameraObject           = GameObject.Find("00_MainCamera");
        cameraShowingStuffData = cameraObject.GetComponent <ShowingStuff>();
    }
	// Use this for initialization
	void Start () {

        playerObject = GameObject.Find("01_Player");
        playerControlData = playerObject.GetComponent<PlayerAttributeControl>();
        playerKeyControlData = playerObject.GetComponent<PlayerKeyboardControl>();


        cameraObject = GameObject.Find("00_MainCamera");
        cameraShowingStuffData = cameraObject.GetComponent<ShowingStuff>();


	}