コード例 #1
0
 private void Awake()
 {
     myPC2D         = GetComponent <PolygonCollider2D>();
     myPC2D.enabled = false;
     myRB           = GetComponent <Rigidbody2D>();
     sm             = FindObjectOfType <SonMovement>();
     mm             = FindObjectOfType <MotherMovement>();
 }
コード例 #2
0
 private void Init(Scene current, Scene next)
 {
     sm = FindObjectOfType <SonMovement> ();
     mm = FindObjectOfType <MotherMovement> ();
     sm?.fadeIn();
     mm?.fadeIn();
     interaction = false;
 }
コード例 #3
0
ファイル: stairs.cs プロジェクト: devil304/Jam2020ZWDRG
 private void Start()
 {
     io = GetComponent <InteractionObject>();
     sm = FindObjectOfType <SonMovement>();
     mm = FindObjectOfType <MotherMovement>();
 }
コード例 #4
0
 // Start is called before the first frame update
 private void Awake()
 {
     sm = FindObjectOfType <SonMovement>();
     mm = FindObjectOfType <MotherMovement>();
 }