コード例 #1
0
    // Update is called once per frame
    void FixedUpdate()
    {
        // Move
        CircleMove();

        // Change Color
        Angle += Time.deltaTime;
        CircleSize.GetComponent <SpriteRenderer>().color = new Color(SR.color.r, SR.color.g, SR.color.b, Mathf.Sin(Angle));
    }
コード例 #2
0
 // Start is called before the first frame update
 void Start()
 {
     SR = CircleSize.GetComponent <SpriteRenderer>();
     DefaultStart();
 }