コード例 #1
0
        void Start()
        {
            spawnRope = GetComponent <SpawnRope>();

            rotationSpeed = FindObjectOfType <PlayerController>().RotationSpeed;
            rotationValue = FindObjectOfType <PlayerController>().RotationValue;
        }
コード例 #2
0
 void Start()
 {
     mainCamera = GetComponent <Camera>();
     controller = FindObjectOfType <ButtonController>();
     spawnRope  = FindObjectOfType <SpawnRope>();
     player     = FindObjectOfType <Player>();
 }