コード例 #1
0
ファイル: Block.cs プロジェクト: sebit0nic/Bricklington
 private void Start()
 {
     animator = GetComponent<Animator> ();
     particleSys = GetComponent<ParticleSystem> ();
     block = GetComponent<SpriteRenderer> ();
     thisCollider = GetComponent<BoxCollider2D> ();
     tempColor = new Color (0.472f, 0.25f, 0, 1);
     tempColor2 = new Color (0.742f, 0.683f, 0.41f, 1);
     audioSource = GetComponent<AudioSource> ();
     audioController = GameObject.Find ("Audiocontroller").GetComponent<Audiocontroller> ();
 }
コード例 #2
0
 void Awake()
 {
     instans = this;
 }