コード例 #1
0
 // Start is called before the first frame update
 void Start()
 {
     RainScript = RainPrefab.GetComponent <RainScript2D>();
     RainScript.RainIntensity = 0.1f;
     RainScript.CollisionMask = 0;
     _rain_heavy = false;
     _rain_stop  = false;
 }
コード例 #2
0
 // Start is called before the first frame update
 void Start()
 {
     rainScript    = GetComponentInChildren <RainScript2D>();
     windZone      = GetComponentInChildren <WindZone>();
     controlPoints = GetComponentsInChildren <RainControlPoint>();
     camera        = Camera.main;
     currentIndex  = 1;
     seedRb        = FindObjectOfType <Seed>().GetComponent <Rigidbody2D>();
 }
コード例 #3
0
    void Start()
    {
        animation = river.GetComponent("FloodingAnimation") as FloodingAnimation;

        rain = rainManager.GetComponent <RainScript2D>();
    }
コード例 #4
0
    void Start()
    {
        rainOccurrence = GameObject.Find("RainPrefab2D").GetComponent <RainScript2D>();

        soilID = this.gameObject.transform.parent.name;
    }