コード例 #1
0
 void Start()
 {
     t = GetComponent <Transform>();
     w = GetComponent <WrapAround>();
     r = GetComponent <SpriteRenderer>();
     Select();
 }
コード例 #2
0
 // Start is called before the first frame update
 void Start()
 {
     WrapAround script = gameObject.GetComponent <WrapAround>();
 }
コード例 #3
0
ファイル: WrapAround.cs プロジェクト: maocast/asteroids
 public void initialize()
 {
     opposite = (WrapAround)oppositeGO.GetComponent("WrapAround");
     translation = oppositeGO.transform.position - transform.position;
     unitTranslation = translation.normalized;
 }