// Use this for initialization void Start() { //シーンマネージャー取得 this.sceneManager = GameObject.Find("SelectSceneManager").GetComponent <SelectSceneManager>(); //出現アニメーション this.transform.localScale = new Vector3(0, 0, 0); this.transform.DOScale(Vector3.one, 0.1f).SetEase(Ease.OutBounce); //アクターアイコン準備 Sprite [] iconImages = sceneManager.actorIconImages; float radUnit = (Mathf.PI * 2) / sceneManager.getNumActor(); for (int i = 0; i < sceneManager.getNumActor(); i++) { GameObject icon = Instantiate(this.actorIcon, new Vector3(0, 0, -10), Quaternion.identity, this.transform); icon.GetComponent <SpriteRenderer>().sprite = iconImages[i]; ActorIconController asc = icon.GetComponent <ActorIconController>(); asc.rad = 0; asc.radMax = radUnit * i; asc.selecter = this.gameObject; asc.index = i; } }
// Use this for initialization void Start() { startPosition = transform.position; targetPosition = transform.position; isMoveable = false; selectSceneManager = GameObject.Find("SelectSceneManager").GetComponent <SelectSceneManager>(); }
// Use this for initialization void Start() { //シーンマネージャー取得 this.sceneManager = GameObject.Find("SelectSceneManager").GetComponent <SelectSceneManager>(); this.alpha = 0.0f; this.fade(0.6f, 0.2f); }
void Awake() { if (instance==null) { instance = this; } else { Destroy (this); } }
// Use this for initialization void Start() { //シーンマネージャー取得 this.sceneManager = GameObject.Find("SelectSceneManager").GetComponent <SelectSceneManager>(); this.transform.localScale = new Vector3(0.0f, 1.0f, 1.0f); this.transform.DOScale(Vector3.one, 0.3f).SetEase(Ease.OutQuad); }
// Use this for initialization void Start() { //シーンマネージャー取得 this.sceneManager = GameObject.Find("SelectSceneManager").GetComponent <SelectSceneManager>(); //初期位置記録 this.startX = this.transform.position.x; this.setup(); }
public void click() { SelectSceneManager sc = this.sceneManager.GetComponent <SelectSceneManager>(); if (sc.isInteractive == false) { return; } sc.addActor(); sc.addActorFadeInOut(); }
Camera _camera; // カメラの座標 // Use this for initialization void Start() { //シーンマネージャー取得 this.sceneManager = GameObject.Find("SelectSceneManager").GetComponent <SelectSceneManager>(); //エフェクト用カメラ取得 this._camera = GameObject.Find("EffectCamera").GetComponent <Camera>(); //パーティクルシステム GameObject go = Instantiate((GameObject)Resources.Load("Prefabs/TapParticle")); go.transform.parent = this.transform; this.tapEffect = go.GetComponent <ParticleSystem>(); }
// Use this for initialization void Start() { this.sceneManager = GameObject.Find("SelectSceneManager").GetComponent <SelectSceneManager>(); }
private SelectSceneManager selectSceneManager; //script SelectSceneManager // Use this for initialization void Start() { selectSceneManager = GameObject.FindObjectOfType <SelectSceneManager>(); //inicializar valores }
// Use this for initialization void Start() { //シーンマネージャー取得 this.sceneManager = GameObject.Find("SelectSceneManager").GetComponent <SelectSceneManager>(); this.button = this.GetComponent <Button>(); }