void Start() { ownTransform = transform; mainCamera = Camera.main; TitleScript mainCameraComponent = mainCamera.GetComponent<TitleScript>(); maxCameraSize = mainCameraComponent.maxCameraSize; currentCameraSize = mainCamera.orthographicSize; startScale = ownTransform.localScale; }
// Use this for initialization void Start() { title = this.GetComponent(typeof(TitleScript)) as TitleScript; }
// Start is called before the first frame update void Start() { instance = this; }
void SelectHero(TitleScript cameraComponent) { cameraComponent.selectedObject = hero.ownTransform; cameraComponent.selectedObject.GetComponent <SelectingObject>().ChangeSelect(); }